package com.scau.util;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class BeansUtil {
	private static ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");

	@SuppressWarnings("unchecked")
	public static Object get(String bean){
		return ctx.getBean(bean);
	}
}
